package com.edu.learn.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestThymeleafController {

    @RequestMapping(value="/")
    public String hello(Model param){
        param.addAttribute("name","wuxl");
        param.addAttribute("age",20);

        return "hello";

    }
}
